﻿/**
*
* @file ParseUtil.h
* @brief ParseUtil
*
* @author xxxx
* @date 2016-03-17 16:05:00
*
*/

#ifndef __PARSE_UTIL_H_
#define __PARSE_UTIL_H_
#include <string>
#include <vector>

struct IntArrayArray;
struct AIMacro;

class CParseUtil
{
public:
    static int ParseStringToIntArray(const char* pString, const char* delim, int intArray[], int iMaxSize, int& iSize);
    static int ParseStringToFloatArray(const char* pString, const char* delim, float fArray[], int iMaxSize, int& iSize);
    static int ParseIntArrayArray(IntArrayArray* pArrArr, const char* pString);
    static int ParseOneMacro(AIMacro* pMacro, const char* pString);
    static int ParseMacroToVector(const AIMacro* pMacro, std::vector<std::vector<std::vector<int>>>& vvvecSkillID);


    static int SplitCharArray(const char* pString, const char* delim, std::vector<std::string>& vecStr);
};

#endif //__PARSE_UTIL_H_

